﻿package mortal.game.manager.msgTip
{
    import com.gengine.global.*;
    import com.gengine.utils.pools.*;
    import flash.display.*;
    import mortal.game.manager.*;
    import mortal.game.view.msgbroad.*;

    public class MsgMouseInfoImpl extends Sprite
    {

        public function MsgMouseInfoImpl()
        {
            return;
        }// end function

        public function show(param1:String, param2:Boolean = true, param3:MsgRollTipsType = null, param4:int = 0, param5:int = 0) : void
        {
            var _loc_7:Number = NaN;
            var _loc_8:MouseTipItem = null;
            if (!param3)
            {
                param3 = MsgRollTipsType.msgRollTips1;
            }
            var _loc_6:* = Global.stage.mouseX;
            _loc_7 = Global.stage.mouseY;
            _loc_8 = ObjectPool.getObject(MouseTipItem);
            _loc_8.x = _loc_6 + param4;
            _loc_8.y = _loc_7 + param5;
            _loc_8.updateText(param1, param3);
            LayerManager.msgTipLayer.addChild(_loc_8);
            _loc_8.tweenShow();
            return;
        }// end function

    }
}
